Tomcat 設定


其實是去年的筆記,結果後來也沒有繼續寫 J2EE。蒐集不完的工程師技能樹。

  1. 下載 windows-zip檔
  2. 編輯 conf\tomcat-users.xml
  3. 編輯 setclasspath.ssh
  4. 執行 startup.ssh
  5. 登入

1. 下載 windows-zip檔

64-bit Windows zip
https://tomcat.apache.org/

解壓縮

2. 編輯 conf\tomcat-users.xml

開啟 C:\Users\jingr\Downloads\apache-tomcat-9.0.24-windows-x64\apache-tomcat-9.0.24\conf

編輯 conf\tomcat-users.xml
</tomcat-users> 上加入使用者

<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="admin" roles="manager-gui"/>

3. 編輯 setclasspath.ssh

開啟 C:\Users\jingr\Downloads\apache-tomcat-9.0.24-windows-x64\apache-tomcat-9.0.24\bin

編輯 setclasspath.ssh
新增 JDK path

set JAVA_HOME=C:\Program Files\Java\jdk-12.0.1

4. 執行 startup.ssh

點兩下執行

5. 登入

開啟瀏覽器輸入 http://localhost:8080
點 manager app
輸入:帳號 admin 密碼 admin,進入管理介面

http://www.runoob.com/jsp/eclipse-jsp.html

參考資料

https://sites.google.com/a/mis.nsysu.edu.tw/cheng-shi-zi-xun-wang/java-se-ji-chu-pian/huan-jing-pei-zhi
http://pclevin.blogspot.com/2014/12/apache-tomcat-8_24.html

#JSP #tomcat #J2EE-devlopment #servlet







你可能感興趣的文章

使用 Django、Vue 以及 AWS 來實作購物車吧!

使用 Django、Vue 以及 AWS 來實作購物車吧!

1731. The Number of Employees Which Report to Each Employee

1731. The Number of Employees Which Report to Each Employee

滲透測試基本技術 第三章 (004)

滲透測試基本技術 第三章 (004)






留言討論